package level_one;

import java.util.Scanner;

public class Five {
    public static void main(String[] args) {
        System.out.println("请输入长");
        Scanner length = new Scanner(System.in);
        System.out.println("请输入宽");
        Scanner wide = new Scanner(System.in);
        int l = length.nextInt();
        int d = wide.nextInt();
        int area = l * d;
        int perimeter = 2 * l + 2 * d;
        System.out.println("面积为" + area + "周长为" + perimeter);
    }
}

